<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>src/vfs/smbfs/helpers/aclocal.m4</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/src.html'>src</a>/<a href='../files/src--vfs.html'>vfs</a>/<a href='../files/src--vfs--smbfs.html'>smbfs</a>/<a href='../files/src--vfs--smbfs--helpers.html'>helpers</a>/aclocal.m4</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/src.html'>src</a>/<a href='../files/src--vfs.html'>vfs</a>/<a href='../files/src--vfs--smbfs.html'>smbfs</a>/<a href='../files/src--vfs--smbfs--helpers.html'>helpers</a>/aclocal.m4</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 src/vfs/smbfs/helpers/aclocal.m4'  /> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a>dnl AC_VALIDATE_CACHE_SYSTEM_TYPE[(cmd)]
<a id='L2' name='L2'></a>dnl if the cache file is inconsistent with the current host,
<a id='L3' name='L3'></a>dnl target and build system types, execute CMD or print a default
<a id='L4' name='L4'></a>dnl error message.
<a id='L5' name='L5'></a>AC_DEFUN([AC_VALIDATE_CACHE_SYSTEM_TYPE], [
<a id='L6' name='L6'></a>    AC_REQUIRE([AC_CANONICAL_SYSTEM])
<a id='L7' name='L7'></a>    AC_MSG_CHECKING([config.cache system type])
<a id='L8' name='L8'></a>    if { test x"${ac_cv_host_system_type+set}" = x"set" &amp;&amp;
<a id='L9' name='L9'></a>         test x"$ac_cv_host_system_type" != x"$host"; } ||
<a id='L10' name='L10'></a>       { test x"${ac_cv_build_system_type+set}" = x"set" &amp;&amp;
<a id='L11' name='L11'></a>         test x"$ac_cv_build_system_type" != x"$build"; } ||
<a id='L12' name='L12'></a>       { test x"${ac_cv_target_system_type+set}" = x"set" &amp;&amp;
<a id='L13' name='L13'></a>         test x"$ac_cv_target_system_type" != x"$target"; }; then
<a id='L14' name='L14'></a>        AC_MSG_RESULT([different])
<a id='L15' name='L15'></a>        ifelse($#, 1, [$1],
<a id='L16' name='L16'></a>                [AC_MSG_ERROR([you must remove config.cache and restart configure])])
<a id='L17' name='L17'></a>    else
<a id='L18' name='L18'></a>        AC_MSG_RESULT([same])
<a id='L19' name='L19'></a>    fi
<a id='L20' name='L20'></a>    ac_cv_host_system_type="$host"
<a id='L21' name='L21'></a>    ac_cv_build_system_type="$build"
<a id='L22' name='L22'></a>    ac_cv_target_system_type="$target"
<a id='L23' name='L23'></a>])
<a id='L24' name='L24'></a> 
<a id='L25' name='L25'></a>dnl based on Automake's maintainer mode
<a id='L26' name='L26'></a>AC_DEFUN([SAMBA_MAINTAINER_MODE],[
<a id='L27' name='L27'></a>  AC_ARG_ENABLE(maintainer-mode,
<a id='L28' name='L28'></a>        [  --enable-maintainer-mode enable some make rules for maintainers],
<a id='L29' name='L29'></a>      maint_mode=$enableval, maint_mode=no)
<a id='L30' name='L30'></a>  if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
<a id='L31' name='L31'></a>  AC_SUBST(MAINT)
<a id='L32' name='L32'></a>  AC_PATH_PROG(AUTOCONF, autoconf, autoconf)
<a id='L33' name='L33'></a>  AC_SUBST(AUTOCONF)
<a id='L34' name='L34'></a>  AC_PATH_PROG(AUTOHEADER, autoheader, autoheader)
<a id='L35' name='L35'></a>  AC_SUBST(AUTOHEADER)
<a id='L36' name='L36'></a>])
<a id='L37' name='L37'></a> 
<a id='L38' name='L38'></a> 
<a id='L39' name='L39'></a>dnl AC_PROG_CC_FLAG(flag)
<a id='L40' name='L40'></a>AC_DEFUN([AC_PROG_CC_FLAG],
<a id='L41' name='L41'></a>[AC_CACHE_CHECK([whether ${CC-cc} accepts -$1], ac_cv_prog_cc_$1,
<a id='L42' name='L42'></a>[echo 'void f(){}' &gt; conftest.c
<a id='L43' name='L43'></a>if test -z "`${CC-cc} -$1 -c conftest.c 2&gt;&amp;1`"; then
<a id='L44' name='L44'></a>  ac_cv_prog_cc_$1=yes
<a id='L45' name='L45'></a>else
<a id='L46' name='L46'></a>  ac_cv_prog_cc_$1=no
<a id='L47' name='L47'></a>fi
<a id='L48' name='L48'></a>rm -f conftest*
<a id='L49' name='L49'></a>])])
<a id='L50' name='L50'></a> 
<a id='L51' name='L51'></a>dnl check for a function in a library, but don't
<a id='L52' name='L52'></a>dnl keep adding the same library to the LIBS variable.
<a id='L53' name='L53'></a>dnl AC_LIBTESTFUNC(lib,func)
<a id='L54' name='L54'></a>AC_DEFUN([AC_LIBTESTFUNC],
<a id='L55' name='L55'></a>[case "$LIBS" in
<a id='L56' name='L56'></a>  *-l$1*) AC_CHECK_FUNCS($2) ;;
<a id='L57' name='L57'></a>  *) AC_CHECK_LIB($1, $2) 
<a id='L58' name='L58'></a>     AC_CHECK_FUNCS($2)
<a id='L59' name='L59'></a>  ;;
<a id='L60' name='L60'></a>  esac
<a id='L61' name='L61'></a>])
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+61 src/vfs/smbfs/helpers/aclocal.m4'  /> */</em>
</body>
</html>
